﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PiaoanWeb.AppLogic.BusinessLogicLayer;
using PiaoanWeb.AppLogic.DataAccessLayer;
namespace PiaoanWeb
{
    public partial class Block : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack && !string.IsNullOrEmpty(Request.QueryString["T"]))
            {
                Title = Request.QueryString["T"];
                titleLbl.Text = Request.QueryString["T"];

                BlocksBLL blocksBLL = new BlocksBLL();
                BlockContent blockContent = blocksBLL.GetBlockContentByBlockName(Request.QueryString["T"]);
                contentLbl.Text = blockContent.Content;
            }
        }
    }
}